<%@ page import="java.util.Date" %>
<%--
  Created by IntelliJ IDEA.
  User: humeng
  Date: 2022/10/19
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>res</title>
</head>
<body>
<%
    //设置响应头
    response.setHeader("refresh","5");

    Date date = new Date();
    String s = date.toLocaleString();
    out.println(s);


    response.setContentType("text/html;charset=UTF-8");
    response.getWriter().write("你好");
%>

</body>
</html>
